#include "fsl_common.h"
#include "fsl_iomuxc.h"
#include "MCIMX6Y2.h"

void Delay(volatile unsigned int n);

int main()
{
    CCM->CCGR0=0xFFFFFFFF;
    CCM->CCGR1=0xFFFFFFFF;
    CCM->CCGR2=0xFFFFFFFF;
    CCM->CCGR3=0xFFFFFFFF;
    CCM->CCGR4=0xFFFFFFFF;
    CCM->CCGR5=0xFFFFFFFF;
    CCM->CCGR6=0xFFFFFFFF;

    IOMUXC_SetPinMux(IOMUXC_GPIO1_IO03_GPIO1_IO03,0);
    
    IOMUXC_SetPinConfig(IOMUXC_GPIO1_IO03_GPIO1_IO03,0X10B0);

	GPIO1->GDIR |= (1 << 3);	

    while(1)
    {
        GPIO1->DR &= ~(1 << 3);
    }
}

void Delay(volatile unsigned int n)
{
    while(n--)
    {
        for(volatile unsigned int i=0;i<255;i++);
    }
}



